package com.code.day04.objects;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        DemoObject demoObject = new DemoObject("sss", 143);
        System.out.println(demoObject);
        System.out.println(demoObject.toString());

        ArrayList<Object> objects = new ArrayList<>();
        objects.add(demoObject);
        System.out.println(objects.toString());
    }
}
